package cn.shop.front.mapper;

import cn.shop.base.MyBaseMapper;
import cn.shop.front.entity.gamebind.GameBind;
import cn.shop.front.entity.gamebind.MerchantAlias;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.time.LocalDateTime;
import java.util.List;
import java.util.Map;

/**
 * @author : 李一涵
 * @date : Created in 2022-2-14 10:24
 * @description :
 */
@Mapper
public interface GameBindMapper extends MyBaseMapper<GameBind> {

	List<GameBind> bindList(long userId);

	List<Map<String, Object>> allGame(@Param("name") String name);

	List<Map<String, Object>> allGameByUid(@Param("uid") long uid);

	Long queryPartitonTime(@Param("uid") Long uid, @Param("time") LocalDateTime time);

	List<Map<String, Object>> allPartitionByGame(long gameId);

	Long getGameIdByPartitionId(long partitionId);

	Map<String, Object> getGameByPartitionId(long partitionId);

	MerchantAlias checkAlias(@Param("name") String name);

	List<Map<String, Object>> userGame(@Param("userId") long userId);
}
